<?php

namespace app\service\admin;

use app\db\admin\D_categoryChild;

class S_categoryChild
{
    public $d_categoryChild;

    public function __construct()
    {
        $this->d_categoryChild = new D_categoryChild();
    }

    /**
     * 获取子集ids
     * @param string $paramObj
     * @return mixed
     */
    public function getChildIds($paramObj="")
    {
        return $this->d_categoryChild->getChildIds($paramObj);
    }

    /**
     * 记录资源
     * @param string $paramObj
     * @return mixed
     */
    public function record($paramObj="")
    {
        return $this->d_categoryChild->record($paramObj);
    }

    /**
     * 删除
     * @param string $paramObj
     * @return mixed
     */
    public function delByCon($paramObj="")
    {
        return $this->d_categoryChild->delByCon($paramObj);
    }

    /**
     * 删除
     * @param string $paramObj
     * @return mixed
     */
    public function deleteBatch($paramObj="")
    {
        return $this->d_categoryChild->deleteBatch($paramObj);
    }

    public function __call($name,$arguments)
    {
        return recordLogMsgLevelTwo(app("errorLevel")::E_WARNING,app("errorCode")::UNDEFINED_METHOD,lang("sys.noMethodDefined"),$name,$arguments);
    }
}